<template>
  <Tettgen-throttle-btn ref="elBtn" :delayTime="3000" @click="handleClick" type="primary" >
    节流按钮3s
  </Tettgen-throttle-btn>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { ElMessage } from 'element-plus'
const elBtn = ref()
const handleClick = () => {
  ElMessage.success('点击事件触发！触发间隔为3s，目的是避免疯狂点击！')
  console.log(111111, elBtn.value.elButton)
}
</script>

<style scoped lang="scss">
</style>
